package me.helllp.dake.iam.core.convert;

import me.helllp.dake.iam.core.bo.ApplicationBo;
import me.helllp.dake.iam.core.bo.TenantBo;
import me.helllp.dake.iam.core.bo.UserBo;
import me.helllp.dake.iam.core.dto.TenantDto;
import me.helllp.dake.iam.core.po.DakeApplication;
import me.helllp.dake.iam.core.po.DakeTenant;
import me.helllp.dake.iam.core.po.DakeUser;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 应用的结构转换器
 */
@Mapper(componentModel = "spring")
public interface TenantConvert {
    TenantConvert INSTANCE = Mappers.getMapper(TenantConvert.class);

    TenantBo toTenantBo(DakeTenant tenant);

    DakeTenant toTenant(TenantBo tenantBo);
}
